#include "WSComparable.h"

WSComparable::WSComparable()
{
	position_ = -1;
	whitespace_ = 0;
}

WSComparable::WSComparable(int pos, char ws)
{
	position_ = pos;
	whitespace_ = ws;
}

char WSComparable::getWhitespace() const
{
	return whitespace_;
}

bool WSComparable::compare(WSComparable b)
{
	if (whitespace_ ^ b.getWhitespace())
		return false;
	else
		return true;
}
